home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ Logoff Pictures.xpl
< prev
next >
Wrap
Text File
|
1999-06-12
|
2KB
|
79 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="3"
"COUNT"="2"
"UIPATH"="Network\Logoff"
"NAME"="Windows 9x Logoff Pictures"
"VERSION"="1.4"
"LANGUAGE"="VBScript"
"TEXT 1"="Picture 1"
"TEXT 2"="Picture 2"
"DATA 1"="Bitmap picturs (*.BMP)|*.bmp"
"DATA 2"="Bitmap picturs (*.BMP)|*.bmp"
"DESCRIPTION 1"="This plug-in can be used to change the pictures that are displayed when logging off from Windows."
"DESCRIPTION 2"=""Picture 1" is displayed while the computer is shut down (Please wait while...)."
"DESCRIPTION 3"=""Picture 2" is displayed when the computer can be turned off (It's safe now to...)."
"DESCRIPTION 4"="NOTE #1: Both pictures should be 320x400 pixels with 256 colors."
"DESCRIPTION 5"="NOTE #2: Both settings are for Windows 95 or Windows 98."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
Sub Plugin_Initialize
if GetWinVer=1 or GetWinVer=3 then
SetUIElement 1,GetWinDir
SetUIElement 2,GetWinDir
else
Disable
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
s=GetUIElement(1)
if len(s)>0 then
Call DoWork("LOGOW.SYS","LOGOW.XSB",s)
Call Restart
end if
s=GetUIElement(2)
if len(s)>0 then
Call DoWork("LOGOS.SYS","LOGOS.XSB",s)
Call Restart
end if
Call MsgInformation("The new logo has been set.")
End Sub
Sub Plugin_Terminate
End Sub
Sub DoWork(File1,BackupFile,NewFile)
s1=GetWinDir & File1
s2=GetWinDir & BackupFile
s3=NewFile
'if backup exists, delete it
if FileExists(s2) then
Call FileSetAttribute(s2,"S-")
Call FileSetAttribute(s2,"R-")
Call FileSetAttribute(s2,"H-")
Call FileDelete(s2)
end if
'make backup of current file
if FileExists(s1) then
Call FileSetAttribute(s2,"S-")
Call FileSetAttribute(s2,"R-")
Call FileSetAttribute(s2,"H-")
Call FileCopy(s1,s2)
Call FileDelete(s1)
end if
'now copy new file to old file
Call FileCopy(s3,s1)
End Sub